﻿@model ZhongheCms.Models.GswTblMember
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
    string strSelect = "";
    string strSelect1 = "selected";
    string strSelect2 = "selected";
    string strSelect3 = "selected";
    if (Model.AuditFlag == 0)
    {
        strSelect2 = "";
        strSelect3 = "";
    }
    if (Model.AuditFlag == 1)
    {
        strSelect1 = "";
        strSelect3 = "";
    }
    if (Model.AuditFlag == 2)
    {
        strSelect1 = "";
        strSelect2 = "";
    }
}
@section css{

    <link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
    <script charset="utf-8" src="/kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script charset="utf-8" src="/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor1 = K.create('#MemberDesc', {
                cssPath: '/kindeditor/plugins/code/prettify.css',
                uploadJson: '/kindeditor/upload_json.ashx',
                fileManagerJson: '/kindeditor/file_manager_json.ashx'


            });


        });
    </script>
}
<div class="row">
    <div class="col-xs-12 col-sm-12 widget-container-col">

        <div class="widget-box">
            <div class="widget-header">
                <h5 class="widget-title">会员信息</h5>

                <div class="widget-toolbar">
                </div>
            </div>

            <div class="widget-body">
                @using (Html.BeginForm("MemberView", "MemberInfo", new { id = Model.Id, ViewBag.m, ViewBag.f, ViewBag.p, ViewBag.fid, ViewBag.sdate, ViewBag.edate, ViewBag.keywords,ViewBag.pageIndex }, FormMethod.Post,
                    new { name = "myForm", id = "myForm", @class = "form-horizontal", role = "form" }))
                {

                    <div class="widget-main">

                        <div class="form-group">
                            <table id="sample-table-1" class="table table-bordered table-hover">
                                <tbody>
                                    <tr>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">注册日期
                                        </td>
                                        <td>

                                            @Model.RegDate.ToShortDateString()

                                        </td>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">就读学校
                                        </td>
                                        <td>

                                            @Model.SchoolName

                                        </td>

                                    </tr>
                                    <tr>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">所学专业
                                        </td>
                                        <td>
                                            @Model.Major


                                        </td>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">入学年份
                                        </td>
                                        <td>

                                            @Model.EnterSchoolYear


                                        </td>

                                    </tr>
                                    <tr>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">真实姓名
                                        </td>
                                        <td>

                                            @Model.MemberName

                                        </td>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">性别
                                        </td>
                                        <td>
                                            @Model.Gender

                                        </td>
                                        @* <td class="align-right" style="width: 15%; background: #f6f6f6">会员昵称
                                    </td>
                                    <td>

                                        @Model.MemberNickname

                                    </td>*@


                                    </tr>
                                    @*  <tr>
                                    <td class="align-right" style="width: 15%; background: #f6f6f6">性别
                                    </td>
                                    <td>
                                        @Model.Gender

                                    </td>
                                    <td class="align-right" style="width: 15%; background: #f6f6f6">出生日期
                                    </td>
                                    <td colspan="3">
                                        @Model.Birthday
                                    </td>
                                </tr>*@

                                    <tr>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">联系电话
                                        </td>
                                        <td>

                                            @Model.MemberTel

                                        </td>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">QQ
                                        </td>
                                        <td>

                                            @Model.MemberQQ
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">电子邮件
                                        </td>
                                        <td>
                                            @Model.MemberEmail

                                        </td>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">会员积分
                                        </td>
                                        <td>
                                            @Model.MemberPoint

                                        </td>
                                    </tr>

                               

                                    <tr>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">会员照片
                                        </td>
                                        <td>
                                            <img width="221" height="100" alt="221x100" id="img" src="@Model.MemberPic" />


                                        </td>
                                        <td class="align-right" style="width: 15%; background: #f6f6f6">会员类别
                                        </td>
                                        <td>
                                            @Model.MemberType
                                            @if (!string.IsNullOrEmpty(Model.MemberCardNo))
                                            {
                                                
                                                <span>[卡号:@Model.MemberCardNo]</span>
                                            }
                                           
                                        </td>
                                    
                                    </tr>
                                   
                                    <tr>
                                        <td class="align-right" style="width: 15%">自我介绍</td>
                                        <td colspan="3">
                                            @Html.Raw(Model.MemberBrief)
                                            
                                        </td>
                                    


                                    </tr>
                                    <tr>
                                        <td class="align-right" style="width: 15%">会员评价</td>
                                        <td colspan="3">
                                            @Html.Raw(Model.MemberDesc)
                                            
                                        </td>
                                    


                                    </tr>

                                </tbody>
                            </table>
                        </div>

                            @if (ViewBag.scode == "1")
                        {
                            <div class="hr hr-2 dotted"></div>
                            <div class="alert alert-success">
                                <button type="button" class="close" data-dismiss="alert">
                                    <i class="icon-remove"></i>
                                </button>

                                <strong>
                                    <i class="icon-ok"></i>
                                    提示信息
                                </strong>

                                信息保存成功!
																
                            </div>
                        }
                        @if (ViewBag.scode == "0")
                        {
                            <div class="hr hr-2 dotted"></div>
                            <div class="alert alert-danger">
                                <button type="button" class="close" data-dismiss="alert">
                                    <i class="icon-remove"></i>
                                </button>

                                <strong>
                                    <i class="icon-remove"></i>
                                    错误提示
                                </strong>

                                @Html.ValidationSummary(true)

                            </div>

                        }
                  
                       @* <div class="clearfix form-actions">
                            <div class="col-md-offset-3 col-md-9">
                              <button class="btn btn-info" type="submit">
                                    &nbsp;&nbsp;<i class="ace-icon fa fa-check bigger-110"></i>
                                    保存&nbsp;&nbsp;
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="button" onclick=" funBack() ">
                                    &nbsp;&nbsp;<i class="ace-icon fa fa-undo bigger-110"></i>
                                    返回&nbsp;&nbsp;
                                </button>
                            </div>
                        </div>*@

                                
                                        @if (Model.JobWorkAllp.Count > 0)
                                        {
                                           

                                                 <table class="table table-bordered table-hover">
                                                    <thead>
                                                        <tr>
                                                           
                                                             <th>报名日期
                                                            </th>
                                                             <th>招聘单位
                                                            </th>
                                                            <th>职位编号
                                                            </th>

                                                            <th>职位名称
                                                            </th>
                                                            <th>工作日期
                                                            </th>
                                                            <th>
                                                              工作表现
                                                            </th>
                                                            
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        @foreach (var item in Model.JobWorkAllp)
                                                        {
                                                            
                                                            <tr>
                                                               
                                                                <td>
                                                                    @item.RegDate.ToShortDateString()

                                                                </td>
                                                                <td>
                                                                    @item.CusShortName
                                                                </td>
                                                                <td>
                                                                    @item.JobNo
                                                                </td>
                                                                <td>
                                                                    @item.JobTitle
                                                                </td>
                                                                <td>
                                                                    @item.WorkDate
                                                                </td>
                                                               
                                                                <td>
                                                                    @if (item.WorkFlag == 0)
                                                                    {
                                                                        <span style="color: red">[好评]</span>
                                                                    }
                                                                    @if (item.WorkFlag == 1)
                                                                    {
                                                                        <span style="color: red">[中评]</span>
                                                                    }
                                                                    @if (item.WorkFlag == 2)
                                                                    {
                                                                        <span style="color: red">[差评]</span>
                                                                    }
                                                                    @item.WorkResult
                                                                </td>
                                                            </tr>
                                       
                                                        }
                                                    </tbody>
                                                </table>
                                       
                                        }

                                    
                                   


                    </div>

                }

            </div>

        </div>
        

    </div>


</div>
@section js{

    <script type="text/javascript">



        function funBack() {
            document.location = "/MemberInfo/Index/0?m=@ViewBag.m&f=@ViewBag.f&p=@ViewBag.p&fid=@ViewBag.fid&sdate=@ViewBag.sdate&edate=@ViewBag.edate&keywords=@ViewBag.keywords";
        }
    </script>
}
